package io.github.biezhi.elves.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.github.biezhi.elves.fsggzy.model.FsBiddingList;
import io.github.biezhi.elves.fsggzy.model.FsDownloadBiddingHtml;
import io.github.biezhi.elves.fsggzy.model.FsRecordBiddingNotice;
import io.github.biezhi.elves.mapper.FsggzyMapper;
import io.github.biezhi.elves.service.FsggzyService;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Service("fsggzyService")
public class FsggzyServiceImpl implements FsggzyService {

	@Autowired
	private FsggzyMapper fsggzyMapper;
	
	@Override
	public void saveFsRecordBiddingNotice(FsRecordBiddingNotice fsRecordBiddingNotice) {
		fsggzyMapper.saveFsRecordBiddingNotice(fsRecordBiddingNotice);
	}

	@Override
	public Integer countByUrl(String noticeDetailUrl) {
		return fsggzyMapper.countByUrl(noticeDetailUrl);
	}

	@Override
	public List<FsRecordBiddingNotice> findRecordByNoticeTypeAndDate(String noticeType, String date) {
		return fsggzyMapper.findRecordByNoticeTypeAndDate(noticeType,date);
	}

	@Override
	public void saveFsDownloadBiddingHtml(FsDownloadBiddingHtml fsDownloadBiddingHtml) {
		fsggzyMapper.saveFsDownloadBiddingHtml(fsDownloadBiddingHtml);
	}

	@Override
	public Integer countByDownloadUrl(String noticeDetailUrl) {
		return fsggzyMapper.countByDownloadUrl(noticeDetailUrl);
	}

	@Override
	public List<FsDownloadBiddingHtml> listDownloadHtml() {
		return fsggzyMapper.listDownloadHtml();
	}

	@Override
	public void saveFsbiddingList(FsBiddingList fsbiddingList) {
		fsggzyMapper.saveFsbiddingList(fsbiddingList);
	}

}
